package momo.app.structure;

import momo.app.comms.RcvChannel;
import momo.app.comms.SendChannel;

public class Relationship
{
	private Peer peer;
	private ChannelLink channels;
	private boolean isParent;
	
	public Relationship(Peer peer, ChannelLink channels, boolean isParent)
	{
		this.peer = peer;
		this.channels = channels;
		this.isParent = isParent;
	}
	
	public Relationship(Peer peer, RcvChannel rC, SendChannel sC, boolean isParent)
	{
		this.peer = peer;
		this.channels = new ChannelLink(rC, sC);
		this.isParent = isParent;
	}

	public Peer getPeer() {
		return peer;
	}

	public void setPeer(Peer peer) {
		this.peer = peer;
	}

	public ChannelLink getChannels() {
		return channels;
	}

	public void setChannels(ChannelLink channels) {
		this.channels = channels;
	}
	
	public void setChannels(RcvChannel rC, SendChannel sC) {
		setChannels(new ChannelLink(rC, sC));
	}

	public boolean isParent() {
		return isParent;
	}

	public void setParent(boolean isParent) {
		this.isParent = isParent;
	}
	
}//end of class Relationship
